'use strict';

stareal
    .controller("BeautifulImgsController", function ($scope, $api, $stateParams, $state, $lazyLoader,$timeout,localStorageService) {
        $scope.mypage = 2;
        $scope.listpage= 1;
        var h=$(window).height()-1.4*parseFloat(document.documentElement.style.fontSize)+"px";
        $("#wrapper_container").height(h);

        // 加载对应演出种类的内容
        $scope.BeautifulImgLists = new $lazyLoader("app/beautychart/list", {
            // kind: ($scope.kind == 'all'?'':$scope.kind),
            // sort: $scope.sort,
            // direct: $scope.direct
        },true);
        $scope.BeautifulImgLists.nextPage();
        $scope.goToScan=function(idx,likes,name,url){
            // localStorageService.set('BeautifulImglikes',likes);
            // localStorageService.set('BeautifulImgname',name);
            // localStorageService.set('BeautifulImgurl',url);
              $state.go('main.beautifulImgDetail',{id:idx},true);
        }




    });